<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>索引缓冲区设置 | ElasticSearch 7.7 权威指南中文版</title>
	<meta name="keywords" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <meta name="description" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <!-- Give IE8 a fighting chance -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
	<link rel="stylesheet" type="text/css" href="../static/styles.css" />
	<script>
	var _link = 'indexing-buffer.html';
    </script>
</head>
<body>
<div class="main-container">
    <section id="content">
        <div class="content-wrapper">
            <section id="guide" lang="zh_cn">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12 col-sm-8 col-md-8 guide-section">
                            <div style="color:gray; word-break: break-all; font-size:12px;">原英文版地址: <a href="https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indexing-buffer.html" rel="nofollow" target="_blank">https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indexing-buffer.html</a>, 原文档版权归 www.elastic.co 所有<br/>本地英文版地址: <a href="../en/indexing-buffer.html" rel="nofollow" target="_blank">../en/indexing-buffer.html</a></div>
                        <!-- start body -->
                  <div class="page_header">
<strong>重要</strong>: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" rel="nofollow">当前版本文档</a>。
</div>
<div id="content">
<div class="breadcrumbs">
<span class="breadcrumb-link"><a href="index.html">Elasticsearch 权威指南 [7.7]</a></span>
»
<span class="breadcrumb-link"><a href="setup.html">安装和设置</a></span>
»
<span class="breadcrumb-link"><a href="settings.html">配置 Elasticsearch</a></span>
»
<span class="breadcrumb-node">索引缓冲区设置</span>
</div>
<div class="navheader">
<span class="prev">
<a href="recovery.html">« 索引恢复设置</a>
</span>
<span class="next">
<a href="license-settings.html">许可证设置 »</a>
</span>
</div>
<div class="section">
<div class="titlepage"><div><div>
<h2 class="title">
<a id="indexing-buffer"></a>索引缓冲区设置 (Indexing buffer settings)
</h2>
</div></div></div>
<p>
索引缓冲区用于存储新索引的文档。当缓冲区填满时，其中的文档会被写到磁盘上的一个段中。节点的所有分片都使用这个缓冲区。
</p>
<p>
下面几个设置是<em>动态的</em>，必须在集群的每一个节点上都配置：
</p>
<div class="variablelist">
<dl class="variablelist">
<dt>
<span class="term">
<code class="literal">indices.memory.index_buffer_size</code>
</span>
</dt>
<dd>
接受百分比或字节大小值。
默认为 <code class="literal">10%</code>，表示分配给一个节点的堆的总大小的 <code class="literal">10%</code> 将用于所有分片共享的索引缓冲区大小。
</dd>
<dt>
<span class="term">
<code class="literal">indices.memory.min_index_buffer_size</code>
</span>
</dt>
<dd>
如果将 <code class="literal">index_buffer_size</code> 指定为一个百分比值，则此设置可用于指定绝对最小值。默认为 <code class="literal">48mb</code>。
</dd>
<dt>
<span class="term">
<code class="literal">indices.memory.max_index_buffer_size</code>
</span>
</dt>
<dd>
如果将 <code class="literal">index_buffer_size</code> 指定为一个百分比值，则此设置可用于指定绝对最大值。默认为 不限制。
</dd>
</dl>
</div>
</div>
<div class="navfooter">
<span class="prev">
<a href="recovery.html">« 索引恢复设置</a>
</span>
<span class="next">
<a href="license-settings.html">许可证设置 »</a>
</span>
</div>
</div>

                  <!-- end body -->
                        </div>
                        <div class="col-xs-12 col-sm-4 col-md-4" id="right_col">
                        
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </section>
</div>
<script src="../static/cn.js"></script>
</body>
</html>